<%-- 
    Document   : modificar
    Created on : 24/09/2013, 10:12:53 PM
    Author     : Andres
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<h3>Agregar Componentes</h3>  
<form id="modificarComponente">
    <input type="hidden" class="inp-form" value="<s:property value='comp.Id'/>" name="id" id="id"/>
    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">    
            <tr>
                <th valign="top">
                    Nombre: 
                </th> 
                <td>
                    <select id="tipo" name="tipo">
                            <option value="">[Tipo]</option>
                            <s:iterator value="listaTipoComponentes" var="ltc" status="estatus">
                                <option value="<s:property value='IdTipo'/>" <s:if test="comp.IdTipo.idTipo==#ltc.IdTipo"> selected</s:if> > <s:property value="Tipo"/></option>   
                            </s:iterator>
                    </select> 
                </td>    
                <td>
                <div class="error-left"></div>
                <div class="error-inner" id="etipo">Este campo es requerido.</div>
                </td>
            </tr>
            <tr>
                <th valign="top">
                    Caracteristicas: 
                </th> 
                <td>
                    <input type="text" class="inp-form" value="<s:property value='comp.Caracteristicas'/>" name="caracteristicas" id="caracteristicas"/>
                </td>    
                <td>
                <div class="error-left"></div>
                <div class="error-inner" id="ecaracteristicas">Este campo es requerido.</div>
                </td>
            </tr>
            <tr>
                <th valign="top">
                    Estatus: 
                </th> 
                <td>
                    <input type="text" class="inp-form" value="<s:property value='comp.status'/>" name="estatus" id="estatus"/>
                </td>    
                <td>
                <div class="error-left"></div>
                <div class="error-inner" id="eestatus">Este campo es requerido.</div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="button" class="btn" value="Cancelar" id="btnRegresar">
                    <input type="submit" class="btn" value="Aceptar" name="btnModicarComponente" id="btnModificarComponente">
                </td>    
            </tr> 
    </table>
</form>
